package com.admission.util;

import java.io.File;
//删除图片源文件
public class DeleteFile {
	public static void delete(String fileName) {

		File file = new File(fileName);
		if (file.isFile() && file.exists()) {
			file.delete();
		}
	}

	public static void deleteByFile(File file) {
		if (file.isFile() && file.exists()) {

			file.delete();
		}

	}
}
